VectorImage AddCircle

Adds a circle shape to the VectorImage

Overloads

public void AddCircle(float centerX, float centerY, float centerZ, float radius)
public void AddCircle(CircleShape circleShape)

 

Return value

void  

 

Parameters

float centerX The x coordinate of the center
float centerY The y coordinate of the center
float centerZ The z coordinate of the center
float radius The radius of the arc
CircleShape circleShape Define using a Circle shape

 

Example

Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);

if (scanDocument != null)
{
    VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);

    vectorImage.SetMarkSpeed(1000);
    vectorImage.SetJumpSpeed(2000);
    vectorImage.SetJumpDelay(100);
    vectorImage.SetMarkDelay(100);

    //Set Laser Delays
    vectorImage.SetLaserOnDelay(10);
    vectorImage.SetLaserOffDelay(10);

    vectorImage.AddCircle(0, 0, 0, 10);

    scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));

    try
    {
        scanDocument.StartScanning();
    }
    catch
    {

    }

}